package com.yxw.bamboo.core;


public class SocketChannel {

    public static final String LOCAL_TO_REMOTE="local to remote";
    public static final String REMOTE_TO_LOCAL="remote to local";

    public Integer getHostId() {
        return hostId;
    }

    public void setHostId(Integer hostId) {
        this.hostId = hostId;
    }

    private Integer hostId;


    public DbInfo getDbINfo() {
        return dbINfo;
    }

    private volatile DbInfo dbINfo;

    public SocketChannel(String channelName, int socketHashCode, int socketStep, DbInfo dbINfo,int hostId) {
        this.channelName = channelName;
        this.socketHashCode = socketHashCode;
        this.socketStep = socketStep;
        this.dbINfo=dbINfo;
        this.hostId=hostId;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public int getSocketHashCode() {
        return socketHashCode;
    }

    public void setSocketHashCode(int socketHashCode) {
        this.socketHashCode = socketHashCode;
    }

    public int getSocketStep() {
        return socketStep;
    }

    public void addSocketStep(int i)
    {
        this.socketStep=this.socketStep+i;
    }

    public void setSocketStep(int socketStep) {
        this.socketStep = socketStep;
    }

    private String channelName;
    private int socketHashCode;
    private int socketStep;


}
